package com.jbinfo.mongoot.operation.cms;

import java.util.List;

import org.springframework.data.mongodb.repository.MongoRepository;


public interface CmsRepository extends MongoRepository<Cms, String> {
	
	/**
	  * 
	  * @param firstname
	  * @return
	  */
	 public Cms findByUsername(String username);
	 
	 /**
	  * 获得list通过cms
	  * @param type
	  * @return
	  */
	 public List<Cms> findListByType(String type);
	 
	 /**
	  * 删除通过Id
	  * @param cid
	  * @return
	  */
	 public Cms findByCid(String cid);
	 
	 
	 public Cms findByTitle(String title);
}
